
const TokenKey = 'goods__token'
const uname = 'goods__uname'
const uroles = 'goods__uroles'
const  avatar= 'goods__avatar'
export function getToken() {
  return localStorage.getItem(TokenKey)
}

export function setToken(token) {
  return localStorage.setItem(TokenKey, token)
}

export function removeToken() {
  return localStorage.removeItem(TokenKey)
}

export function getName() {
  return localStorage.getItem(uname)
}

export function setName(name) {
  return localStorage.setItem(uname, name)
}
export function removeName() {
  return localStorage.removeItem(uname)
}

export function getRoles() {
  return localStorage.getItem(uroles)
}

export function setRoles(name) {
  return localStorage.setItem(uroles, name)
}
export function removeRoles() {
  return localStorage.removeItem(uroles)
}
export function getAvatar() {
  return localStorage.getItem(avatar)
}

export function setAvatar(avatar) {
  return localStorage.setItem(avatar, avatar)
}

export function removeAvatar() {
  return localStorage.removeItem(avatar)
}